import { Injectable } from '@angular/core';

@Injectable({
  // root 声明当前访问注入到根
  providedIn: 'root'
})
export class TestService {
  test: string = 'test service'
  constructor() { }
}
